import React from 'react';
import {NavLink, useNavigate} from 'react-router-dom';
import style from './css/Films.module.css'
function Films(){
    console.log(style);
    const navigate = useNavigate()
    return (
        <div>
            Films
            <b onClick={goto404=>{
                // window.location.href="/404";//原生js
                // props.history.push("/404")//老版本写法
                navigate("/404")
            }} className={style.active}>去404页(编程式导航)</b>
            <NavLink to='/daili'>反向代理获取数据</NavLink>
        </div>
    );
}

export default Films